<script setup>
import { Modal } from 'ant-design-vue'
import { ColumnHeightOutlined, DownOutlined, PlusOutlined, ReloadOutlined, SettingOutlined, UpOutlined } from '@ant-design/icons-vue'
import { adjustBankBill, getBankDetail, getSplitList, rePayBank } from '~@/api/split/index'
import { getMerchantList } from '~@/api/card/index'
import { getChannelName } from '~@/api/order/index'

defineOptions({
  name: 'Split',
})
const router = useRouter()
const message = useMessage()
const userStore = useUserStore()
const { hasPermission } = userStore
const activeKey = ref('1')
const columns = shallowRef([
  {
    title: '医院名称',
    dataIndex: 'appName',
    width: 250,
  },
  {
    title: '收款账号',
    dataIndex: 'accountNoTo',
    width: 200,
  },
  {
    title: '收款账户名称',
    dataIndex: 'accountNameTo',
    width: 250,
  },
  {
    title: '付款账号',
    dataIndex: 'accountNoFrom',
    width: 200,
    customRender: ({ text }) => {
      if (text) {
        return text
      }
      else {
        return '--'
      }
    },
  },
  {
    title: '付款账户名称',
    dataIndex: 'accountNameFrom',
    width: 250,
    customRender: ({ text }) => {
      if (text) {
        return text
      }
      else {
        return '--'
      }
    },
  },

  {
    title: '打款金额',
    dataIndex: 'splitFee',
    width: 150,
  },

  {
    title: '调账金额',
    dataIndex: 'fixFee',
    width: 150,
  },
  {
    title: '手续费',
    dataIndex: 'commission',
    width: 150,
  },
  {
    title: '商户手续费率',
    dataIndex: 'rate',
    width: 150,
  },
  {
    title: '打款渠道',
    dataIndex: 'channelName',
    width: 180,
  },
  {
    title: '是否调账',
    dataIndex: 'adjust',
    width: 150,
    align: 'center',
    customRender: ({ text }) => {
      if (text === true) {
        return '是'
      }
      else {
        return '否'
      }
    },
  },
  {
    title: '打款状态',
    dataIndex: 'status',
    width: 150,
    align: 'center',
  },
  {
    title: '计划打款日期',
    align: 'center',
    dataIndex: 'transferDate',
    width: 150,
    customRender: ({ text }) => {
      if (text) {
        return text
      }
      else {
        return '--'
      }
    },
  },
  {
    title: '实际打款时间',
    align: 'center',
    dataIndex: 'completeTime',
    width: 200,
    customRender: ({ text }) => {
      if (text) {
        return text
      }
      else {
        return '--'
      }
    },
  },

  {
    title: '操作',
    dataIndex: 'action',
    align: 'center',
    fixed: 'right',
    width: 200,

  },
])
const tradeOptions = shallowRef([])
const bankForm = ref()
const merchantForm = ref()
const channelOptions = shallowRef([])
const merchantOptions = shallowRef([])
const loading = shallowRef(false)
const merchantloading = shallowRef(false)
const totalNum = shallowRef(0)
const pagination = reactive({
  pageSize: 8,
  pageSizeOptions: ['10', '20', '30', '40'],
  current: 1,
  total: totalNum,
  showSizeChanger: true,
  // showQuickJumper: true,
  showTotal: total => `总共：${total}`,
  onChange(current, pageSize) {
    pagination.pageSize = pageSize
    pagination.current = current
    init()
  },
})
const dataSource = shallowRef([])
const detailInfo = shallowRef({
  appName: void 0,
  platRequestNo: void 0,
  accountNo: void 0,
  appId: void 0,
  cardNo: void 0,
  tradeType: void 0,
  tradeDate: void 0,
  channel: void 0,
  phone: void 0,
  userName: void 0,
  requestCompleteTime: void 0,
  requestStartTime: void 0,
  channelName: void 0,
  defrayFee: void 0,
  status: void 0,
  origPlatRequestNo: void 0,
  defrayNo: void 0,
  adjustmentLogList: void 0,
})

const formModel = reactive({
  appId: void 0,
  tradeDate: void 0,
  channelFilter: void 0,
  accountNoTo: void 0,
  accountNameTo: void 0,
  status: void 0,
})
const statusOptions = shallowRef([
  // { configKey: 'WAITING_PAY', configValue: '等待打款' },
  { configKey: 'FAIL', configValue: '打款失败' },
  // { configKey: 'DEBIT_MERGE', configValue: '账期合并' },
  // { configKey: 'PAYING', configValue: '打款处理中' },
  { configKey: 'SUCCESS', configValue: '打款成功' },
])
const tableSize = ref(['large'])
const merchantTitle = shallowRef('')
const open = ref(false)
const addOpen = ref(false)// 新增商户
const bankOpen = ref(false)// 添加银行账户
const detailOpen = ref(false)// 查看详情

const rules = computed(() => {
  return {
    originalFee: [
      { required: true, message: '必填字段', trigger: 'change' },
    ],
    fixFee: [
      { required: true, message: '必填字段', trigger: 'change' },
    ],
    fixReason: [
      { required: true, message: '必填字段', trigger: 'change' },
    ],

  }
})
const formState = reactive({
  splitRecordId: null,
  originalFee: '',
  fixFee: '',
  fixReason: '',
})
const formMerchant = reactive({
  phone: '',
  merchantName: '',
  contactName: '',
  email: '',
  licenseNo: '',
  address: '',
})

const options = computed(() => {
  return columns.value.map((item) => {
    if (item.dataIndex === 'action') {
      return {
        label: item.title,
        value: item.dataIndex,
        disabled: true,
      }
    }
    return {
      label: item.title,
      value: item.dataIndex,
    }
  })
})
const dropdownVisible = ref(false)
const getCheckList = computed(() => columns.value.map(item => item.dataIndex))
const state = reactive({
  indeterminate: false,
  checkAll: true,
  checkList: getCheckList.value,
})
onMounted(() => {
  init()
  getType()
  getChannel()
})
// 查询交易类型字典值
async function getType() {
  try {
    const res = await getTradeType()
    // window.location.href='https://heren-pay-reconciliation.cn-hangzhou.oss.aliyuncs.com/test/card/bill/CARD_RECHARGE20250307.xls'
    tradeOptions.value = res.data
  }
  catch (e) {
  }
  finally {
    console.log(11)
  }
}

// 查询充值提现字典值
async function getChannel() {
  try {
    const res = await getChannelName()
    // window.location.href='https://heren-pay-reconciliation.cn-hangzhou.oss.aliyuncs.com/test/card/bill/CARD_RECHARGE20250307.xls'
    channelOptions.value = res.data
  }
  catch (e) {
  }
  finally {
    console.log(22)
  }
}
// 查询商户列表
async function init() {
  if (loading.value)
    return
  loading.value = true
  try {
    const startDate = formModel.tradeDate?.[0]?.format('YYYY-MM-DD')
    const endDate = formModel.tradeDate?.[1]?.format('YYYY-MM-DD')
    const { data } = await getSplitList({
      param: { ...formModel, startDate, endDate },
      page: {
        currentPage: pagination.current,
        pageSize: pagination.pageSize,
      },

    })

    dataSource.value = data.data ?? []
    totalNum.value = data?.pageInfo.total
    console.log(111, totalNum.value)
  }
  catch (e) {
    console.log(e)
  }
  finally {
    loading.value = false
  }
}

// 搜索商户
async function onSearch() {
  pagination.current = 1
  await init()
}

// 重置商户筛选
async function onReset() {
  formModel.appId = void 0
  formModel.channelFilter = void 0
  formModel.accountNoTo = void 0
  formModel.tradeDate = void 0
  formModel.accountNameTo = void 0
  formModel.status = void 0
  await init()
}
// 重置商户信息
function resetMerchant() {
  formMerchant.phone = void 0
  formMerchant.merchantName = void 0
  formMerchant.contactName = void 0
  formMerchant.email = void 0
  formMerchant.address = void 0
  formMerchant.licenseNo = void 0
}

// 查看分账详情
async function handleEdit(record) {
  loading.value = true
  try {
    const res = await getBankDetail(record?.id)
    activeKey.value = '1'
    detailInfo.value = res.data
    detailOpen.value = true
    // console.log(res)
    // window.location.href='https://heren-pay-reconciliation.cn-hangzhou.oss.aliyuncs.com/test/card/bill/CARD_RECHARGE20250307.xls'
    // addOpen.value = true
    // formMerchant.id = res.data.id
    // formMerchant.merchantName = res.data.merchantName
    // formMerchant.contactName = res.data.contactName
    // formMerchant.phone = res.data.phone
    // formMerchant.email = res.data.email
    // formMerchant.address = res.data.address
    // formMerchant.licenseNo = res.data.licenseNo
    // merchantTitle.value = '编辑商户'
    // loading.value = false
  }
  catch (e) {
    // router.push('/profile/basic')
    console.log(e)
    loading.value = false
  }
  finally {
    loading.value = false
  }
}

// 重新打款
async function rePay(record) {
  Modal.confirm({
    title: '谨慎操作',
    content: `确定重新打款给收款账号为 ${record.accountNoTo} 的账户吗？`,
    okText: '确认',
    centered: true,
    cancelText: '取消',
    onOk() {
      return new Promise((resolve, reject) => {
        const res = rePayBank(record.id)
          .then((res) => {
            if (res.data.code === 'SUCCESS') {
              message.success('操作成功')
              init()
              resolve() // 关闭对话框
            }
            else {
              message.error('操作失败')
              reject() // 保持对话框打开
            }
          })
          .catch(() => {
            // message.error('操作失败')
            reject() // 保持对话框打开
          })
      })
    },
    onCancel() {
      console.log('取消操作')
    },
  })
}

// 返回
function handleReturn() {
  open.value = false
}

// 防抖优化接口请求
async function fetchOptions(value) {
  if (!value.trim()) {
    merchantOptions.value = []
    return
  }
  merchantloading.value = true
  const { data } = await getMerchantList(value)
  merchantOptions.value = data
  merchantloading.value = false
};
// 调账
function adjustBill(record) {
  if (bankForm.value) {
    bankForm.value.resetFields()
  }
  formState.splitRecordId = record.id
  formState.originalFee = record.splitFee
  formState.fixFee = void 0
  formState.fixReason = void 0
  bankOpen.value = true
}
// 确认调账
async function handleOk() {
  try {
    await bankForm.value.validate()
    const { data } = await adjustBankBill(formState)
    message.success('保存成功')
    init()
    bankOpen.value = false
  }
  catch (error) {
    // message.error('请检查表单填写是否正确')
  }
}

// 新增商户
function addMerchant() {
  merchantTitle.value = '新增商户'
  resetMerchant()
  addOpen.value = true
  // window.open('#/menu/menu1', '_blank')
}
/**
 * 打款类型
 *
 */
function handleTradeType(type) {
  switch (type) {
    case 'AUTO':
      return '自动打款'
    default:
      return '人工打款'
  }
}
/**
 * 订单状态
 *
 */
function handleStatus(status) {
  switch (status) {
    // case 'WAITING_PAY':
    //   return '等待打款'
    case 'SUCCESS':
      return '打款成功'
    // case 'PAYING':
    //   return '打款处理中'
    // case 'FAIL':
    //   return '打款失败'
    default:
      return '打款失败'
  }
}

// 确认新增商户
async function handleMerchant() {
  try {
    await merchantForm.value.validate()
    if (formMerchant.id) {
      const { data } = await updateMerchantInfo(formMerchant)
      message.success('保存成功')
    }
    else {
      const { data } = await addMerchantInfo(formMerchant)
      message.success('新增成功')
    }

    init()
    addOpen.value = false
  }
  catch (error) {
    // message.error('请检查表单填写是否正确')
  }
}

function cancelModal() {
  if (bankForm.value) {
    bankForm.value.resetFields()
  }
  console.log('cancel')
}
function handleSizeChange(e) {
  tableSize.value[0] = e.key
}
function filterAction(value) {
  return columns.value.filter((item) => {
    if (value.includes(item.dataIndex))
      return true

    return false
  })
}
const filterColumns = ref(filterAction(getCheckList.value))
function handleCheckAllChange(e) {
  Object.assign(state, {
    checkList: e.target.checked ? getCheckList.value : [],
    indeterminate: true,
  })
  filterColumns.value = e.target.checked ? filterAction(getCheckList.value) : filterColumns.value.filter(item => item.dataIndex === 'action')
}
watch(
  () => state.checkList,
  (val) => {
    state.indeterminate = !!val.length && val.length < getCheckList.value.length
    state.checkAll = val.length === getCheckList.value.length
  },
)
function handleResetChange() {
  state.checkList = getCheckList.value
  filterColumns.value = filterAction(getCheckList.value)
}
function handleCheckChange(value) {
  const filterValue = filterAction(value)
  filterColumns.value = filterValue
}

const expand = ref(false)
</script>

<template>
  <page-container>
    <div>
      <a-card mb-4>
        <a-form :label-col="{ span: 7 }" :model="formModel">
          <a-row :gutter="[15, 0]">
            <a-col :span="8">
              <a-form-item name="tradeDate" label="交易时间">
                <a-range-picker v-model:value="formModel.tradeDate" allow-clear style="width:100%" />
              </a-form-item>
            </a-col>
            <a-col :span="8">
              <a-form-item name="appId" label="医院名称">
                <a-select
                  v-model:value="formModel.appId"
                  show-search
                  placeholder="请输入关键字搜索"

                  allow-clear
                  :filter-option="false"
                  :not-found-content="merchantloading ? '加载中...' : '暂无数据'"
                  @search="fetchOptions"
                >
                  <a-select-option v-for="item in merchantOptions" :key="item.appId" :value="item.appId">
                    {{ item.appName }}
                  </a-select-option>
                </a-select>
              </a-form-item>
            </a-col>
            <a-col :span="8">
              <a-form-item name="channelFilter" label="打款渠道">
                <a-select v-model:value="formModel.channelFilter" placeholder="请选择" allow-clear>
                  <a-select-option v-for="item in channelOptions" :key="item.configKey" :value="item.configKey">
                    {{ item.configValue }}
                  </a-select-option>
                </a-select>
              </a-form-item>
            </a-col>

            <a-col :span="8">
              <a-form-item name="accountNoTo" label="收款账号">
                <a-input v-model:value="formModel.accountNoTo" placeholder="精确查询" allow-clear />
              </a-form-item>
            </a-col>
            <a-col :span="8">
              <a-form-item name="accountNameTo" label="收款账户名称">
                <a-input v-model:value="formModel.accountNameTo" placeholder="模糊查询" allow-clear />
              </a-form-item>
            </a-col>
            <a-col :span="8">
              <a-form-item name="status" label="打款状态">
                <a-select v-model:value="formModel.status" placeholder="请选择" allow-clear>
                  <a-select-option v-for="item in statusOptions" :key="item.configKey" :value="item.configKey">
                    {{ item.configValue }}
                  </a-select-option>
                </a-select>
              </a-form-item>
            </a-col>
          </a-row>
          <a-row :span="24" style="text-align: right">
            <a-col :span="24">
              <a-space flex justify-end w-full>
                <!-- :loading="loading" -->
                <a-button type="primary" @click="onSearch">
                  查询
                </a-button>
                <a-button @click="onReset">
                  重置
                </a-button>
              </a-space>
            </a-col>
          </a-row>
        </a-form>
      </a-card>

      <a-card title="分账列表">
        <a-table bordered :loading="loading" :columns="filterColumns" :scroll="{ x: 1000 }" :data-source="dataSource" :pagination="pagination">
          <template #bodyCell="{ column, record }">
            <template v-if="column.dataIndex === 'splitFee'">
              <span :style="{ color: record.splitFee < 0 ? 'red' : 'black' }">{{ Number(record.splitFee).toFixed(2) }}</span>
            </template>
            <template v-else-if="column.dataIndex === 'fixFee'">
              <span :style="{ color: record.fixFee < 0 ? 'red' : 'black' }">{{ Number(record.fixFee).toFixed(2) }}</span>
            </template>
            <template v-else-if="column.dataIndex === 'status'">
              <span>
                <a-badge :color="record.status === 'SUCCESS' ? 'geekblue' : 'red'" />
                <!-- <span /> -->
                <span> {{ handleStatus(record.status) }}</span>
              </span>
            </template>
            <template v-else-if="column.dataIndex === 'action'">
              <div class="action flex">
                <a @click="handleEdit(record)">详情</a>
                <span v-if="hasPermission('split:adjust:add') || hasPermission('split:record:pay')">
                  <span v-if="record.status === 'FAIL'" class="middle-line">|</span>
                </span>
                <span v-if="hasPermission('split:record:pay')">
                  <a v-if="record.status === 'FAIL'" @click="rePay(record)">重新打款</a>
                </span>
                <span v-if="hasPermission('split:adjust:add')">
                  <span v-if="record.status === 'FAIL'" class="middle-line">|</span>
                </span>
                <span v-if="hasPermission('split:adjust:add')">
                  <a v-if="record.status === 'FAIL'" @click="adjustBill(record)">调账</a>
                </span>
              </div>
            </template>
          </template>
        </a-table>
      </a-card>

      <!-- 调账 -->
      <a-modal v-model:open="bankOpen" width="650px" title="调账" :mask-closable="false" :body-style="{ paddingTop: '30px', paddingBottom: '30px' }" ok-text="保存" @ok="handleOk" @cancel="cancelModal">
        <a-form
          ref="bankForm"
          :model="formState"
          :rules="rules"
          name="basic"
          :label-col="{ span: 6 }"
          :wrapper-col="{ span: 16 }"
          autocomplete="off"
        >
          <a-form-item
            label="原始金额："
            name="originalFee"
          >
            <a-input-number v-model:value="formState.originalFee" style="width: 370px;" disabled :controls="false" />
          </a-form-item>
          <a-form-item
            label="调账金额 ："
            name="fixFee"
          >
            <a-input-number v-model:value="formState.fixFee" style="width: 370px;" :controls="false" />
          </a-form-item>
          <a-form-item
            label="调账原因："
            name="fixReason"
          >
            <a-textarea v-model:value="formState.fixReason" style="width: 500px;" :rows="4" />
          </a-form-item>
        </a-form>
      </a-modal>

      <!-- 查看详情 -->
      <a-modal v-model:open="detailOpen" :footer="null" width="1150px" :mask-closable="false" :body-style="{ paddingBottom: '30px', minHeight: '600px' }">
        <a-card class="transition-all-300" :bordered="false">
          <a-tabs v-model:active-key="activeKey">
            <a-tab-pane key="1" tab="订单详情" style="height:480px;overflow: auto;">
              <a-descriptions class="mt-3">
                <a-descriptions-item label="医院名称">
                  {{ detailInfo.appName }}
                </a-descriptions-item>
                <a-descriptions-item label="医院商户号">
                  {{ detailInfo.partnerId }}
                </a-descriptions-item>
                <a-descriptions-item label="分账请求批次号">
                  {{ detailInfo.requestBatchNo }}
                </a-descriptions-item>

                <a-descriptions-item label="转账唯一流水号">
                  {{ detailInfo.transferNo ? detailInfo.transferNo : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="收款账号">
                  {{ detailInfo.accountNoTo ? detailInfo.accountNoTo : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="收款账户名称">
                  {{ detailInfo.accountNameTo ? detailInfo.accountNameTo : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="付款账号">
                  {{ detailInfo.accountNoFrom ? detailInfo.accountNoFrom : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="付款账户名称">
                  {{ detailInfo.accountNameFrom ? detailInfo.accountNameFrom : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="调账金额">
                  {{ detailInfo.fixFee ? detailInfo.fixFee : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="打款金额">
                  {{ detailInfo.fixedSplitFee ? detailInfo.fixedSplitFee : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="订单金额">
                  {{ detailInfo.totalFee ? detailInfo.totalFee : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="手续费">
                  {{ detailInfo.commission ? detailInfo.commission : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="转账手续费">
                  {{ detailInfo.transferCommission ? detailInfo.transferCommission : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="分摊手续费">
                  {{ detailInfo.shareCommission ? detailInfo.shareCommission : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="服务费">
                  {{ detailInfo.serviceFee ? detailInfo.serviceFee : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="商户手续费率">
                  {{ detailInfo.rate ? detailInfo.rate : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="打款渠道">
                  {{ detailInfo.channelName ? detailInfo.channelName : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="打款类型">
                  {{ handleTradeType(detailInfo.type) }}
                </a-descriptions-item>
                <a-descriptions-item label="是否调账">
                  {{ detailInfo.adjust === false ? '否' : "是" }}
                </a-descriptions-item>
                <a-descriptions-item label="计划打款日期">
                  {{ detailInfo.transferDate ? detailInfo.transferDate : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="实际打款时间">
                  {{ detailInfo.completeTime ? detailInfo.completeTime : "--" }}
                </a-descriptions-item>
                <a-descriptions-item label="订单状态">
                  {{ handleStatus(detailInfo.status) }}
                </a-descriptions-item>
                <a-descriptions-item label="打款附言">
                  {{ detailInfo.title ? detailInfo.title : "--" }}
                </a-descriptions-item>
              </a-descriptions>
            </a-tab-pane>
            <a-tab-pane v-if="detailInfo && detailInfo.adjustmentLogList.length > 0" key="2" tab="调账详情" style="height:480px;overflow: auto;">
              <a-timeline class="mt-4">
                <a-timeline-item v-for="(item, index) in detailInfo && detailInfo.adjustmentLogList" :key="index" color="gray">
                  <div class="adjust">
                    <span class="theme-color">{{ item.creator }}</span><span class="right-title">  进行了调账  - {{ item.createTime }}</span>
                  </div>
                  <div class="adjust">
                    <span class="left-title">调账金额： </span> <span class="right-title"> {{ Number(item.fixFee).toFixed(2) }}</span>
                  </div>
                  <div class="adjust">
                    <span class="left-title">调账原因： </span> <span class="right-title"> {{ item.fixReason }}</span>
                  </div>
                </a-timeline-item>
              </a-timeline>
            </a-tab-pane>
            <a-tab-pane v-if="detailInfo && detailInfo.detailList.length > 0" key="3" tab="转账详情" style="height:480px;overflow: auto;">
              <a-timeline class="mt-4">
                <a-timeline-item v-for="(item, index) in detailInfo && detailInfo.detailList" :key="index" color="gray">
                  <div class="adjust">
                    <span class="theme-color">{{ item.creator }}</span><span class="right-title"> 发起转账 - {{ item.createTime }}</span>
                  </div>
                  <div class="adjust mt-2">
                    <span class="left-title">转账金额： </span> <span class="right-title"> {{ Number(item.amount).toFixed(2) }} </span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="left-title">转账流水号： </span> <span class="right-title"> {{ item.transferNo }}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class="left-title">处理状态： </span> <span class="right-title"> {{ item.status }}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="left-title">交易完成时间： </span> <span class="right-title"> {{ item.completeTime }}</span>
                  </div>
                </a-timeline-item>
              </a-timeline>
            </a-tab-pane>
          </a-tabs>
        </a-card>
      </a-modal>
    </div>
  </page-container>
</template>

<style scoped>
  .adjust{
    padding-bottom:5px;
  }
  .left-title{
    color:#6b778c;
    font-size: 13px;
  }
  .right-title{
    color:#172b4d;
  }
  ::v-deep(.ant-descriptions .ant-descriptions-item-label){
    /* color: #172b4d; */
  }
  ::v-deep(.ant-descriptions .ant-descriptions-item-content){
    /* color: #172b4d; */
  }
  ::v-deep(.ant-tabs .ant-tabs-tab){
   padding:12px 30px;
  }
  ::v-deep(.ant-tabs){
    min-height: 350px;
  }
</style>
